package com.ny.service;

import com.ny.entity.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentService {
    int add(Student student) throws SQLException, ClassNotFoundException;

    Student login(String studentName, String studentPassword) throws SQLException;

    int delete(int studentId1);

    int update(Student student1);

    List<Student> findAllStudent();

    int updatePhone(int studentID, String newPhone);

    int updatePassword(int studentID, String newPassword);
}
